<script setup>
import { ref } from 'vue';
// import { getList } from '@/api/test';
// import { get, post } from '@/api/index'
// console.log(get, post);

const loading = ref(true);
const finished = ref(true);
const onLoad = async () => {
  // const res = await getList({pageNum: 1, pageSize: 10})
  // console.log(res);
}
</script>

<template>
  <div class="pro-list">
    <van-list
      v-model:loading="loading"
      :finished="finished"
      finished-text="没有更多了"
      @load="onLoad"
    >
      <slot :loading="loading" :finished="finished"></slot>
    </van-list>
  </div>
</template>

<style lang="scss" scoped></style>
